package com.hulk.dryad.persistence.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *  消息发送记录
 * </p>
 *
 * @author hulk
 * @since 2020-10-13
 */
@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_sms_send_record")
public class SmsSendRecord extends SuperEntity<SmsSendRecord> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @TableField("sms_id")
    private String smsId;

    @TableField("mobile")
    private String mobile;

    @TableField("sms_type")
    private String smsType;

    @TableField("sms_code")
    private String smsCode;

    /**
     * Y:已验证 N:未验证
     */
    @TableField("verify_flag")
    private String verifyFlag;

    @TableField("expire_time")
    private LocalDateTime expireTime;

	@TableField(value = "created_by", fill = FieldFill.INSERT)
    private String createdBy;

	@TableField(value = "updated_by", fill = FieldFill.INSERT_UPDATE)
    private String updatedBy;

	@TableField(value = "created_time", fill = FieldFill.INSERT)
	private LocalDateTime createdTime;

    @TableField(value = "updated_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedTime;

    @TableField("ori_id")
    private String oriId;

    @TableField("rsv1")
    private String rsv1;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
